Opens default user's mail client with given address, subject, and body.
#include <INet.au3>
_INetMail ( $s_MailTo, $s_MailSubject, $s_MailBody )
Parameters
$s_MailTo | Address for the E-Mail |
$s_MailSubject | Subject for the E-Mail |
$s_MailBody | Body for the E-Mail |
Return Value
Success: | Process identifier for the E-Mail client |
Failure: | See remarks. |
Remarks
If this fails to find the correct mail client the script will depend on the status of Opt('RunErrorsFatal', *)
Related
None.
Example
#include <INet.au3>
$Address = InputBox('Address', 'Enter the E-Mail address to send message to')
$Subject = InputBox('Subject', 'Enter a subject for the E-Mail')
$Body = InputBox('Body', 'Enter the body (message) of the E-Mail')
MsgBox(0,'E-Mail has been opened','The E-Mail has been opened and process identifier for the E-Mail client is ' & _INetMail($address, $subject, $body))